#include <iostream>
#include <string>

int main()
{
	std::string str = "";

	std::cout << "Enter string: ";
	std::getline(std::cin, str);

	std::string str_result = "";

	for(int i = 0; i < str.length(); ++i)
	{
		if(' ' == str[i])
			continue;

		str_result += str[i];
	}

	std::cout << "Result: " << str_result << "\n";

	return 0;
}